home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / AIncludes / Timer.a < prev    next >
Text File  |  1996-05-01  |  2KB  |  102 lines

  1. ;
  2. ;    File:        Timer.a
  3. ;
  4. ;    Contains:    Time Manager interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.0d3 on Copland DR1
  8. ;
  9. ;    Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10. ;
  11. ;    Bugs?:        If you find a problem with this file, send the file and version
  12. ;                information (from above) and the problem description to:
  13. ;
  14. ;                    Internet:    apple.bugs@applelink.apple.com
  15. ;                    AppleLink:    APPLE.BUGS
  16. ;
  17. ;
  18.     IF &TYPE('__TIMER__') = 'UNDEFINED' THEN
  19. __TIMER__ SET 1
  20.  
  21.     IF &TYPE('__CONDITIONALMACROS__') = 'UNDEFINED' THEN
  22.     include 'ConditionalMacros.a'
  23.     ENDIF
  24.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  25.     include 'Types.a'
  26.     ENDIF
  27.     IF &TYPE('__OSUTILS__') = 'UNDEFINED' THEN
  28.     include 'OSUtils.a'
  29.     ENDIF
  30.     IF FOR_SYSTEM7_AND_SYSTEM8_DEPRECATED THEN
  31.  
  32.                                                             ; high bit of qType is set if task is active 
  33. kTMTaskActive                    EQU        $00008000
  34. TMTask                    RECORD 0
  35. qLink                     ds.l    1                ; offset: $0 (0)
  36. qType                     ds.w    1                ; offset: $4 (4)
  37. tmAddr                     ds.l    1                ; offset: $6 (6)
  38. tmCount                     ds.l    1                ; offset: $A (10)
  39. tmWakeUp                 ds.l    1                ; offset: $E (14)
  40. tmReserved                 ds.l    1                ; offset: $12 (18)
  41. sizeof                     EQU *                    ; size:   $16 (22)
  42.                         ENDR
  43. ; typedef struct TMTask *                TMTaskPtr
  44.  
  45. ;
  46. ; pascal void InsTime(QElemPtr tmTaskPtr)
  47. ;
  48.     IF ¨ GENERATINGCFM THEN
  49.         ; parameters:
  50.         ;    tmTaskPtr       => A0
  51.         _InsTime:    OPWORD    $A058
  52.     ELSE
  53.         IMPORT_CFM_FUNCTION InsTime
  54.     ENDIF
  55.  
  56. ;
  57. ; pascal void InsXTime(QElemPtr tmTaskPtr)
  58. ;
  59.     IF ¨ GENERATINGCFM THEN
  60.         ; parameters:
  61.         ;    tmTaskPtr       => A0
  62.         _InsXTime:    OPWORD    $A458
  63.     ELSE
  64.         IMPORT_CFM_FUNCTION InsXTime
  65.     ENDIF
  66.  
  67. ;
  68. ; pascal void PrimeTime(QElemPtr tmTaskPtr, long count)
  69. ;
  70.     IF ¨ GENERATINGCFM THEN
  71.         ; parameters:
  72.         ;    tmTaskPtr       => A0
  73.         ;    count           => D0
  74.         _PrimeTime:    OPWORD    $A05A
  75.     ELSE
  76.         IMPORT_CFM_FUNCTION PrimeTime
  77.     ENDIF
  78.  
  79. ;
  80. ; pascal void RmvTime(QElemPtr tmTaskPtr)
  81. ;
  82.     IF ¨ GENERATINGCFM THEN
  83.         ; parameters:
  84.         ;    tmTaskPtr       => A0
  85.         _RmvTime:    OPWORD    $A059
  86.     ELSE
  87.         IMPORT_CFM_FUNCTION RmvTime
  88.     ENDIF
  89.  
  90. ;
  91. ; pascal void Microseconds(UnsignedWide *microTickCount)
  92. ;
  93.     IF ¨ GENERATINGCFM THEN
  94.         _Microseconds:    OPWORD    $A193
  95.     ELSE
  96.         IMPORT_CFM_FUNCTION Microseconds
  97.     ENDIF
  98.  
  99.     ENDIF
  100.     ENDIF ; __TIMER__ 
  101.  
  102.